#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int main()
{
    char num = 0;
    scanf("%c", &num);
    for (int i = 1; i < 10; i++)
    {
        printf("%c", num);
        if (i%3 == 0)
            printf("\n");
    }
    return 0;
}